package com.zmy.xcx.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zmy.xcx.dao.entity.Medication;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * ??Mapper??
 */
@Mapper
public interface MedicationMapper extends BaseMapper<Medication> {
    
    /**
     * ????????
     */
    @Select("SELECT * FROM medication WHERE drug_name = #{drugName}")
    Medication findByDrugName(@Param("drugName") String drugName);
} 